using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using SqlSugar;

namespace AppDown.Db
{
    /// <summary>
    /// SqlSugar配置
    /// </summary>
    public class SqlSugarHelper
    {

        public static readonly SqlSugarScope Db = new SqlSugarScope(new ConnectionConfig()
        {
            DbType = DbType.Sqlite,
            ConnectionString = "DataSource=appDown.db",//连接符字串
            IsAutoCloseConnection = true,
        }, db =>
        {
            db.Aop.OnLogExecuting = (sql, pars) =>
            {
                Console.WriteLine(sql);
            };
        });

    }
}